/**
 * @format
 */

import {AppRegistry} from 'react-native';
// import App from './App';
import {name as appName} from './app.json';
import Config from 'react-native-config';
import AsyncStorage from '@react-native-async-storage/async-storage';
import ErrorBoundary from './app/ErrorBoundary';
import {setLoggerConfig} from '@siteed/react-native-logger';
import {setBaseURL} from './app/http/http';
import moment from 'moment';
import Root from './App';
// appKey:ae4684606d7f4522805d8741247ec573
// Set logger configuration
setLoggerConfig({maxLogs: 3000, namespaces: 'App'}); // Set the maximum number of logs to 500 and enable logging for App namespace
AsyncStorage.setItem('DEBUG', '*');
setBaseURL(Config.APP_URL);
moment.locale('zh-cn');
function Main() {
  return (
    <ErrorBoundary>
      <Root />
    </ErrorBoundary>
  );
}
AppRegistry.registerComponent(appName, () => Main);
